import request from '../../utils/request'

export default {
    show: (config) => request.get('/goods_assistance/' + config.params.id, config),
    touch: (config) => request.get('/goods_assistance/' + config.params.id + '/touch', config),
    user: (config) => request.get('/goods_assistance/' + config.params.id + '/activity_user', config),
    updateUser: (data, config) => request.put('/goods_assistance/' + config.params.id + '/update_activity_user', data, config),
    wallet: (config) => request.get('/goods_assistance/' + config.params.id + '/wallet', config),
    record: (config) => request.get('/goods_assistance_records', config), // 分享记录
    couponProcess: (config) => request.get('/goods_assistance_coupon_process/' + config.params.activity_id + '/show', config),
    withdraw: (data, config) => request.put('/goods_assistance_coupon_verifies/' + data.activity_id + '/withdraw', data, config),
    //participants: (config) => request.get('/goods_assistance/' + config.params.activity_id + '/participants', config),
}